package com.luo.contentprovider.domain;

import android.database.ContentObserver;
import android.os.Handler;
import android.util.Log;

/**
 * 于操作Uri的工具类，分别为UriMatcher和ContentUris 
 * 
 * 
 * 
 * 监听
 * 
 * getContentResolver().registerContentObserver(Uri.parse("content://com.ljq.providers.personprovider/person"),
       true, new PersonObserver(new Handler()));
       
 * 
 */
public class PersonObserver extends ContentObserver
{

	private static final String tag = PersonObserver.class.getSimpleName();
	
	

	public PersonObserver(Handler handler)
	{
		super(handler);
	}

	public void onChange(boolean selfChange)
	{
		// 此处可以进行相应的业务处理
		Log.i(tag, "====onChange");
	}
}
